package cn.edu.sgu.www.mhxysy.dto.role;

import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class RoleAttributeUpdateDTO implements DataTransferObject {

	/**
	 * 气血
	 */
	@Positive(message = "气血" + CustomMessages.ILLEGAL)
	@NotNull(message = "气血" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "气血", required = true)
	private Integer qixue;

	/**
	 * 魔法
	 */
	@Positive(message = "魔法" + CustomMessages.ILLEGAL)
	@NotNull(message = "魔法" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "魔法", required = true)
	private Integer mofa;

	/**
	 * 物理伤害
	 */
	@Positive(message = "物理伤害" + CustomMessages.ILLEGAL)
	@NotNull(message = "物理伤害" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "物理伤害", required = true)
	private Integer wlsh;

	/**
	 * 物理防御
	 */
	@Positive(message = "物理防御" + CustomMessages.ILLEGAL)
	@NotNull(message = "物理防御" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "物理防御", required = true)
	private Integer wlfy;

	/**
	 * 法术伤害
	 */
	@Positive(message = "法术伤害" + CustomMessages.ILLEGAL)
	@NotNull(message = "法术伤害" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "法术伤害", required = true)
	private Integer fssh;

	/**
	 * 法术防御
	 */
	@Positive(message = "法术防御" + CustomMessages.ILLEGAL)
	@NotNull(message = "法术防御" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "法术防御", required = true)
	private Integer fsfy;

	/**
	 * 速度
	 */
	@Positive(message = "速度" + CustomMessages.ILLEGAL)
	@NotNull(message = "速度" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "速度", required = true)
	private Integer sudu;
}